﻿using System;

namespace SimpleServiceBus.Endpoint.Metadata
{
    [Serializable]
    public class EndpointDescription : IEndpointDescription
    {
        public EndpointDescription()
        {
            MaxMessageRetryCount = 3;
        }

        public string ControlBusAddress { get; set; }

        #region IEndpointDescription Members

        public string EndpointID { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        public string ReturnAddress { get; set; }
        public string MonitorServiceAddress { get; set; }
        public string DistributorAddress { get; set; }
        public string DistributorControlAddress { get; set; }
        public string PoisonMessageAddress { get; set; }
        public int MaxMessageRetryCount { get; set;}

        public MessageLoggingLevel IncomingMessageLogLevel { get; set; }
        public MessageLoggingLevel OutgoingMessageLogLevel { get; set; }

        public string SupportEmailAddress { get; set; }

        public string SupportTelephoneNumber { get; set; }

        public double EndpointLatitude { get; set; }

        public double EndpointLongitude { get; set; }
        
        public bool SendOnly {get; set;}

        #endregion
    }
}